package com.base.service.impl;

import com.base.mapper.voipmapper.CompanyClassifyMapper;
import com.base.po.voip.CompanyClassify;
import com.base.po.voip.CompanyClassifyExample;
import com.base.service.CompanyClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("companyClassifyService")
public class CompanyClassifyServiceImpl implements CompanyClassifyService {
	
	@Autowired
	private CompanyClassifyMapper companyClassifyMapper;


	@Override
	public int countByExample(CompanyClassifyExample example) {
		return companyClassifyMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CompanyClassifyExample example) {
		return companyClassifyMapper.deleteByExample(example);
	}

	@Override
	public int insert(CompanyClassify record) {
		return companyClassifyMapper.insert(record);
	}

	@Override
	public int insertSelective(CompanyClassify record) {
		return companyClassifyMapper.insertSelective(record);
	}

	@Override
	public List<CompanyClassify> selectByExample(CompanyClassifyExample example) {
		return companyClassifyMapper.selectByExample(example);
	}

	@Override
	public List<CompanyClassify> selectByAll(String parentid) {
		return companyClassifyMapper.selectByAll(parentid);
	}

	@Override
	public CompanyClassify selectByPrimaryKey(String id) {
		return companyClassifyMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(CompanyClassify record, CompanyClassifyExample example) {
		return companyClassifyMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(CompanyClassify record, CompanyClassifyExample example) {
		return companyClassifyMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(CompanyClassify record) {
		return companyClassifyMapper.updateByPrimaryKeySelective(record);
	}
}
